import { defineStore } from "pinia";
//仓库键名必须是use开头并且具有唯一性
import { userLogin } from "./keys";

//管理登录框是否显示
export const useShowLoginStore = defineStore("userLogin", {
  state() {
    return {
      //是否显示登录模态框
      isShowLoginModal: false,
      //是否已经登录
      isLoginEd: false,
    };
  },
  getters: {},
  actions: {
    //修改登录框状态
    LoginModalShow(payload: boolean) {
      this.isShowLoginModal = payload;
    },
    //修改是否登录
    changeLoginEd(payload: boolean) {
      this.isLoginEd = payload;
    },
  },
});
